package cn.kgc.springloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author mosin
 * date 2022/1/5
 * @version 1.0
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker  //开启熔断服务
public class HystrixApplication {
    public static void main(String[] args) {
        SpringApplication.run(HystrixApplication.class,args);
    }
}
